﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraBars;
using HOTEL_MANAGEMENT;
namespace HOTEL_MANAGEMENT
{
    class QuanLyGiaoDien
    {
    }
    ////////////////
    //Tat Ca Form
    //
    //Dang Nhap
    public class SM_DangNhap
    {
        private bool m_DangNhapThanhCong = false;

        public bool DangNhapThanhCong
        {
            get { return m_DangNhapThanhCong; }
            set { m_DangNhapThanhCong = value; }
        }
        private bool m_LuuPass = false;

        public bool LuuPass
        {
            get { return m_LuuPass; }
            set { m_LuuPass = value; }
        }

        private int m_MaNguoiDung;

        public int MaNguoiDung
        {
            get { return m_MaNguoiDung; }
            set { m_MaNguoiDung = value; }
        }
        private string m_TenDangNhap;

        public string TenDangNhap
        {
            get { return m_TenDangNhap; }
            set { m_TenDangNhap = value; }
        }
        private string m_MatKhau;

        public string MatKhau
        {
            get { return m_MatKhau; }
            set { m_MatKhau = value; }
        }
        private string m_TenNguoiDung;

        public string TenNguoiDung
        {
            get { return m_TenNguoiDung; }
            set { m_TenNguoiDung = value; }
        }
        private int m_MaLoaiNguoiDung;

        public int MaLoaiNguoiDung
        {
            get { return m_MaLoaiNguoiDung; }
            set { m_MaLoaiNguoiDung = value; }
        }
        public void XoaTatCaThongTin()
        {
            m_DangNhapThanhCong = false;
            m_LuuPass = false;
            m_MaNguoiDung = 0;
            m_TenDangNhap = "";
            m_TenNguoiDung = "";
            m_MaLoaiNguoiDung = 0;
        }
        private Form frm;
        private static SM_DangNhap instance;

        private SM_DangNhap()
        {
            frm = new frmDangNhap();
        }
        public static SM_DangNhap getInstance()
        {
            if (instance == null)
                instance = new SM_DangNhap();
            return instance;
        }
        public static bool IsNull()
        {
            if (instance == null)
                return true;
            return false;
        }
        public Form Layfrm()
        {
            return frm;
        }
        public static void Xoa()
        {
            instance = null;
        }
    }
   
    //load main
    public class SM_LoadMain
    {
           private Form frm;
        private static SM_LoadMain instance;

        private SM_LoadMain()
        {
            frm = new frmLoadMain();
        }
        public static SM_LoadMain getInstance()
        {
            if (instance == null)
                instance = new SM_LoadMain();
            return instance;
        }
        public static bool IsNull()
        {
            if (instance == null)
                return true;
            return false;
        }
        public Form Layfrm()
        {
            return frm;
        }
        public static void Xoa()
        {
            instance = null;
        }

    }
    ////////////////////////////////////////////////////
    //tiếp tân
    ///////


    public class STT_TiepTan
    {
        private Form frm;
        private static STT_TiepTan instance;

        private STT_TiepTan()
        {
            frm = new frmTiepTan();
        }
        public static STT_TiepTan getInstance()
        {
            if (instance == null)
                instance = new STT_TiepTan();
            return instance;
        }
        public static bool IsNull()
        {
            if (instance == null)
                return true;
            return false;
        }
        public Form Layfrm()
        {
            return frm;
        }
        public static void Xoa()
        {
            instance = null;
        }
    }
    /////////////////////////
    //Tra cuu phong 
    ////////
    public class STT_TraCuuPhong
    {
        private string m_NghiepVu = "";

        public string NghiepVu
        {
            get { return m_NghiepVu; }
            set { m_NghiepVu = value; }
        }

        private Form frm;
        private static STT_TraCuuPhong instance;
       

        private STT_TraCuuPhong()
        {
            frm = new frmTT_TraCuuPhong();
        }
        public static STT_TraCuuPhong getInstance()
        {
            if (instance == null)
                instance = new STT_TraCuuPhong();
            return instance;
        }
        public static bool IsNull()
        {
            if (instance == null)
                return true;
            return false;
        }
        public Form Layfrm()
        {
            return frm;
        }
        public static void Xoa()
        {
            instance = null;
        }
    }
 
    /////////////////////////////////////
    // Lap Phieu thue
    //
    public class STT_LapPhieuThue
    {
        private int m_MaTiepTan;

        public int MaTiepTan
        {
            get { return m_MaTiepTan; }
            set { m_MaTiepTan = value; }
        }
        private Form frm;
        private static STT_LapPhieuThue instance;

        private STT_LapPhieuThue()
        {
            frm = new frmTT_LapPhieuThue();
        }
        public static STT_LapPhieuThue getInstance()
        {
            if (instance == null)
                instance = new STT_LapPhieuThue();
            return instance;
        }
        public static bool IsNull()
        {
            if (instance == null)
                return true;
            return false;
        }
        public Form Layfrm()
        {
            return frm;
        }
        public static void Xoa()
        {
            instance = null;
        }
    }
    /////////////////////////
    // Tim Phieu thue
   ///////////// 

   
    public class STT_TimPhieuThue
    {
        private Form frm;
        private static STT_TimPhieuThue instance;
        private string nghiepVu = "";

        public string NghiepVu
        {
            get { return nghiepVu; }
            set { nghiepVu = value; }
        }
      
        private STT_TimPhieuThue()
        {
            frm = new frmTT_TimPhieuThue();
        }
        public static STT_TimPhieuThue getInstance()
        {
            if (instance == null)
                instance = new STT_TimPhieuThue();
            return instance;
        }
        public static bool IsNull()
        {
            if (instance == null)
                return true;
            return false;
        }
        public Form Layfrm()
        {
            return frm;
        }
        public static void Xoa()
        {
            instance = null;
        }
    }

    //
    // Lap Hoa Don
    //
    public class STT_LapHoaDon
    {
        private Form frm;
        private static STT_LapHoaDon instance;

        private STT_LapHoaDon()
        {
            frm = new frmTT_LapHoaDon();
        }
        public static STT_LapHoaDon getInstance()
        {
            if (instance == null)
                instance = new STT_LapHoaDon();
            return instance;
        }
        public static bool IsNull()
        {
            if (instance == null)
                return true;
            return false;
        }
        public Form Layfrm()
        {
            return frm;
        }
        public static void Xoa()
        {
            instance = null;
        }
    }


    
    //
    // Tim Hoa Don
    //
    public class STT_TimHoaDon
    {
        private Form frm;
        private static STT_TimHoaDon instance;

        private STT_TimHoaDon()
        {
            frm = new frmTT_TimHoaDon();
        }
        public static STT_TimHoaDon getInstance()
        {
            if (instance == null)
                instance = new STT_TimHoaDon();
            return instance;
        }
        public static bool IsNull()
        {
            if (instance == null)
                return true;
            return false;
        }
        public Form Layfrm()
        {
            return frm;
        }
        public static void Xoa()
        {
            instance = null;
        }
    }

    //
    // Thong Ke Hoa Don
    //
    public class STT_ThongKeHoaDon
    {
        private Form frm;
        private static STT_ThongKeHoaDon instance;

        private STT_ThongKeHoaDon()
        {
            frm = new frmTT_ThongKeHoaDon();
        }
        public static STT_ThongKeHoaDon getInstance()
        {
            if (instance == null)
                instance = new STT_ThongKeHoaDon();
            return instance;
        }
        public static bool IsNull()
        {
            if (instance == null)
                return true;
            return false;
        }
        public Form Layfrm()
        {
            return frm;
        }
        public static void Xoa()
        {
            instance = null;
        }
    }
    //
    // Tim Khach Thue
    //
    public class STT_TimKhachThue
    {
        private string m_NghiepVu = "";

        public string NghiepVu
        {
            get { return m_NghiepVu; }
            set { m_NghiepVu = value; }
        }

        private Form frm;
        private static STT_TimKhachThue instance;

        private STT_TimKhachThue()
        {
            frm = new frmTT_TimKhachThue();
        }
        public static STT_TimKhachThue getInstance()
        {
            if (instance == null)
                instance = new STT_TimKhachThue();
            return instance;
        }
        public static bool IsNull()
        {
            if (instance == null)
                return true;
            return false;
        }
        public Form Layfrm()
        {
            return frm;
        }
        public static void Xoa()
        {
            instance = null;
        }
    }

    //
    // Thong tin ca nhan
    //
    public class STT_ThongTinCaNhan
    {
        private Form frm;
        private static STT_ThongTinCaNhan instance;

        private STT_ThongTinCaNhan()
        {
            frm = new frmTT_ThongTinCaNhan();
        }
        public static STT_ThongTinCaNhan getInstance()
        {
            if (instance == null)
                instance = new STT_ThongTinCaNhan();
            return instance;
        }
        public static bool IsNull()
        {
            if (instance == null)
                return true;
            return false;
        }
        public Form Layfrm()
        {
            return frm;
        }
        public static void Xoa()
        {
            instance = null;
        }
    }
    //end Tiep Tan

    ///////////////////////////////////////////////////////////
    //Giam Doc
    //

    /// ////////////////////////////
    //
    public class SGD_GiamDoc
    {
        private Form frm;
        private static SGD_GiamDoc instance;

        private SGD_GiamDoc()
        {
            frm = new frmGiamDoc();
        }
        public static SGD_GiamDoc getInstance()
        {
            if (instance == null)
                instance = new SGD_GiamDoc();
            return instance;
        }
        public static bool IsNull()
        {
            if (instance == null)
                return true;
            return false;
        }
        public Form Layfrm()
        {
            return frm;
        }
        public static void Xoa()
        {
            instance = null;
        }
    }
    ///lap danh muc phong
    ///
    public class SGD_LapDanhMucPhong
    {

        private string m_NghiepVu = "";

        public string NghiepVu
        {
            get { return m_NghiepVu; }
            set { m_NghiepVu = value; }
        }
        private Form frm;
        private static SGD_LapDanhMucPhong instance;

        private SGD_LapDanhMucPhong()
        {
            frm = new frmGD_lapDanhMucPhong();
        }
        public static SGD_LapDanhMucPhong getInstance()
        {
            if (instance == null)
                instance = new SGD_LapDanhMucPhong();
            return instance;
        }
        public static bool IsNull()
        {
            if (instance == null)
                return true;
            return false;
        }
        public Form Layfrm()
        {
            return frm;
        }
        public static void Xoa()
        {
            instance = null;
        }
    }
    ///////////////////////////////////////////
    //Duyet Quy Dinh
    /// /////////////////
    public class SGD_DuyetQuydinh
    {
        private Form frm;
        private static SGD_DuyetQuydinh instance;

        private SGD_DuyetQuydinh()
        {
            frm = new frmGD_DuyetQuydinh();
        }
        public static SGD_DuyetQuydinh getInstance()
        {
            if (instance == null)
                instance = new SGD_DuyetQuydinh();
            return instance;
        }
        public static bool IsNull()
        {
            if (instance == null)
                return true;
            return false;
        }
        public Form Layfrm()
        {
            return frm;
        }
        public static void Xoa()
        {
            instance = null;
        }
    }

    /////////////////////////////////////
    //Bao Cao Mat Do Su Dung
    //////////////
    public class SGD_BaoCaoTheoMatDosuDung
    {
        private Form frm;
        private static SGD_BaoCaoTheoMatDosuDung instance;

        private SGD_BaoCaoTheoMatDosuDung()
        {
            frm = new frmGD_BaoCaoTheoMatDosuDung();
        }
        public static SGD_BaoCaoTheoMatDosuDung getInstance()
        {
            if (instance == null)
                instance = new SGD_BaoCaoTheoMatDosuDung();
            return instance;
        }
        public static bool IsNull()
        {
            if (instance == null)
                return true;
            return false;
        }
        public Form Layfrm()
        {
            return frm;
        }
        public static void Xoa()
        {
            instance = null;
        }
    }

    ////////////////////////////////////
    //Bao Cao Theo Loai Phong
    ///////////////
    public class SGD_BaoCaoTheoLoaiPhong
    {
        private Form frm;
        private static SGD_BaoCaoTheoLoaiPhong instance;

        private SGD_BaoCaoTheoLoaiPhong()
        {
            frm = new frmGD_BaoCaoTheoLoaiPhong();
        }
        public static SGD_BaoCaoTheoLoaiPhong getInstance()
        {
            if (instance == null)
                instance = new SGD_BaoCaoTheoLoaiPhong();
            return instance;
        }
        public static bool IsNull()
        {
            if (instance == null)
                return true;
            return false;
        }
        public Form Layfrm()
        {
            return frm;
        }
        public static void Xoa()
        {
            instance = null;
        }
    }
    //end Giam Doc
    //////////////////////////////////////
    //Quan Tri
    /////
    ///////////////////
    //Quan Tri He Thong
    //
    public class SQT_QuanTriHeThong
    {
        private Form frm;
        private static SQT_QuanTriHeThong instance;

        private SQT_QuanTriHeThong()
        {
            frm = new frmQuanTriHeThong();
        }
        public static SQT_QuanTriHeThong getInstance()
        {
            if (instance == null)
                instance = new SQT_QuanTriHeThong();
            return instance;
        }
        public static bool IsNull()
        {
            if (instance == null)
                return true;
            return false;
        }
        public Form Layfrm()
        {
            return frm;
        }
        public static void Xoa()
        {
            instance = null;
        }
    }

    /////////////////////////
    //Thay Doi He So Loai Khach QTHT
    //
    public class SQT_thayDoiHeSoLoaiKhachQTHT
    {
        private Form frm;
        private static SQT_thayDoiHeSoLoaiKhachQTHT instance;

        private SQT_thayDoiHeSoLoaiKhachQTHT()
        {
            frm = new frmthayDoiHeSoLoaiKhachQTHT();
        }
        public static SQT_thayDoiHeSoLoaiKhachQTHT getInstance()
        {
            if (instance == null)
                instance = new SQT_thayDoiHeSoLoaiKhachQTHT();
            return instance;
        }
        public static bool IsNull()
        {
            if (instance == null)
                return true;
            return false;
        }
        public Form Layfrm()
        {
            return frm;
        }
        public static void Xoa()
        {
            instance = null;
        }
    }
    ///////////////////////////
    //Thay Doi HeSo Loai Khach
    //
    public class SQT_thayDoiHeSoLoaiKhach
    {
        private Form frm;
        private static SQT_thayDoiHeSoLoaiKhach instance;

        private SQT_thayDoiHeSoLoaiKhach()
        {
            frm = new frmthayDoiHeSoLoaiKhach();
        }
        public static SQT_thayDoiHeSoLoaiKhach getInstance()
        {
            if (instance == null)
                instance = new SQT_thayDoiHeSoLoaiKhach();
            return instance;
        }
        public static bool IsNull()
        {
            if (instance == null)
                return true;
            return false;
        }
        public Form Layfrm()
        {
            return frm;
        }
        public static void Xoa()
        {
            instance = null;
        }
    }
    /////////////////////////////////
    //Thay Doi Don Gia Cac Loai Phong QTHT
    //
    public class SQT_thayDoiDonGiaCacLoaiPhongQTHT
    {
        private Form frm;
        private static SQT_thayDoiDonGiaCacLoaiPhongQTHT instance;

        private SQT_thayDoiDonGiaCacLoaiPhongQTHT()
        {
            frm = new frmthayDoiDonGiaCacLoaiPhongQTHT();
        }
        public static SQT_thayDoiDonGiaCacLoaiPhongQTHT getInstance()
        {
            if (instance == null)
                instance = new SQT_thayDoiDonGiaCacLoaiPhongQTHT();
            return instance;
        }
        public static bool IsNull()
        {
            if (instance == null)
                return true;
            return false;
        }
        public Form Layfrm()
        {
            return frm;
        }
        public static void Xoa()
        {
            instance = null;
        }
    }

    /////////////////////////////
    //Thay Doi Don Gia Cac Loai Phong
    //
    public class SQT_thayDoiDonGiaCacLoaiPhong
    {
        private Form frm;
        private static SQT_thayDoiDonGiaCacLoaiPhong instance;

        private SQT_thayDoiDonGiaCacLoaiPhong()
        {
            frm = new frmthayDoiDonGiaCacLoaiPhong();
        }
        public static SQT_thayDoiDonGiaCacLoaiPhong getInstance()
        {
            if (instance == null)
                instance = new SQT_thayDoiDonGiaCacLoaiPhong();
            return instance;
        }
        public static bool IsNull()
        {
            if (instance == null)
                return true;
            return false;
        }
        public Form Layfrm()
        {
            return frm;
        }
        public static void Xoa()
        {
            instance = null;
        }
    }
    //////////////////////////////
    //Tai Khoan
    ///
    public class SQT_TaiKhoan
    {
        private string m_NghiepVu = "";

        public string NghiepVu
        {
            get { return m_NghiepVu; }
            set { m_NghiepVu = value; }
        }
        private Form frm;
        private static SQT_TaiKhoan instance;

        private SQT_TaiKhoan()
        {
            frm = new frmTaiKhoan();
        }
        public static SQT_TaiKhoan getInstance()
        {
            if (instance == null)
                instance = new SQT_TaiKhoan();
            return instance;
        }
        public static bool IsNull()
        {
            if (instance == null)
                return true;
            return false;
        }
        public Form Layfrm()
        {
            return frm;
        }
        public static void Xoa()
        {
            instance = null;
        }
    }
    //////////////////////
    //Qui Dinh
    ///
    public class SQT_QuiDinh
    {
        private string m_NghiepVu = "";

        public string NghiepVu
        {
            get { return m_NghiepVu; }
            set { m_NghiepVu = value; }
        }
        private Form frm;
        private static SQT_QuiDinh instance;

        private SQT_QuiDinh()
        {
            frm = new frmQuiDinh();
        }
        public static SQT_QuiDinh getInstance()
        {
            if (instance == null)
                instance = new SQT_QuiDinh();
            return instance;
        }
        public static bool IsNull()
        {
            if (instance == null)
                return true;
            return false;
        }
        public Form Layfrm()
        {
            return frm;
        }
        public static void Xoa()
        {
            instance = null;
        }
    }
    //end Quan He Thong
}